
/*
 * Hlpay-Plus aggregate payment system. Copyright
 * (c) 2022-2023 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.infrastructure.mapper.admin;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hlkj.framework.mybatis.core.mapper.BaseMapperX;
import com.hlkj.pay.dto.admin.AdminUserDto;
import com.hlkj.pay.infrastructure.model.admin.AdminUserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author HlpayTeam
 * @date 2024/09/03 15:47
 */
@Mapper
public interface AdminUserMapper extends BaseMapperX<AdminUserDO> {
	
	/**
	 * selectUserPage
	 * @param page
	 * @param queryWrapper
	 * @return
	 */
	IPage<AdminUserDto> selectUserPage(IPage<AdminUserDto> page, @Param("ew") Wrapper<AdminUserDto> queryWrapper);
	/**
	 * selectUserPage
	 * @param queryWrapper
	 * @return
	 */
	List<AdminUserDto> selectUserList( @Param("ew") Wrapper<AdminUserDto> queryWrapper);
	/**
	 * querySameOrganizationFollowUser
	 * @param tenantId
	 * @param systemParentOrganizationCode
	 * @return
	 */
	List<Long> querySameOrganizationFollowUser(@Param("tenantId") String tenantId,
			@Param("systemParentOrganizationCode") String systemParentOrganizationCode);
	/**
	 *
	 * @param userIds
	 * @param teamsCode
	 */
	void updateUserTeams(@Param("userIds")List<Long> userIds, @Param("teamsCode")String teamsCode);
}
